#pragma once
#include "afxwin.h"

class CtestDlg : public CDialog
{
public:

	CtestDlg(CWnd* pParent = NULL);

	enum {IDD = IDD_TEST_DIALOG};

	virtual BOOL DestroyWindow();

protected:

	HICON m_hIcon;

	CButton Btn_OK;
	CButton Btn_Cancel;

	CEdit Edit_Msg;

	myWSAServer *m_Server;

	CString m_szMsg;

	char m_Log[1024];
	char m_Buffer[8192];

	bool m_NIDRuning;

	virtual BOOL OnInitDialog();

	virtual BOOL PreTranslateMessage(MSG *pMsg);

	virtual int LoadCurrentPath();

	virtual int LoadNID(int Style, char *Text = NULL, char *Title = NULL);

	virtual void Msg(char *Text);

	virtual void DoDataExchange(CDataExchange* pDX);

	afx_msg LRESULT OnMessage(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnShowTask(WPARAM wParam,LPARAM lParam);

	//afx_msg LRESULT OnNcHitTest(CPoint point);
	//afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	//afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);
	//afx_msg void OnNcLButtonUp(UINT nHitTest, CPoint point);
	//afx_msg void OnNcMouseMove(UINT nHitTest, CPoint point);

	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnMove(int x, int y);
	afx_msg void OnPaint();
	afx_msg void OnMenuTaskAbout();
	afx_msg void OnMenuTaskQuit();
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();

	DECLARE_MESSAGE_MAP()
};
